package com.yazi.mxz.behavior.repository;


import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.yazi.mxz.behavior.entity.repository.Category;


public interface CategoryRepository extends MongoRepository<Category, Long> {
	
	List<Category> findByParentIdOrderBySort(Long parentId);

	List<Category> findByTypeAndDeepOrderBySort(Integer type, Integer deep);

}
